package com.qianyu.core.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class ValueConfig {

    // redis地址
    @Value("${spring.data.redis.host}")
    private String redisHost;

    // redis端口
    @Value("${spring.data.redis.port}")
    private String redisPort;

//    // redis密码
    @Value("${spring.data.redis.password}")
    private String redisPassword;

    // redis数据库
    @Value("${spring.data.redis.database}")
    private Integer redisDatabase;

    // app请求Jwt secret
    @Value("${qianyu.jwt-secret}")
    private String appJwtSecret;

}
